package agnewpct;

import agnewpct.TextTransfer;

public class BajaClipboard {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		System.out.println("Baja desde NEWPCT");

	    TextTransfer textTransfer = new TextTransfer();

	    //display what is currently on the clipboard
	    System.out.println("Clipboard contains:" + textTransfer.getClipboardContents() );

	    //change the contents and then re-display
	    textTransfer.setClipboardContents("blah, blah, blah");
	    System.out.println("Clipboard contains:" + textTransfer.getClipboardContents() );

	    
	    ClipboardTextListener ctl = new ClipboardTextListener () { 
            @Override 
            protected void textoHaCambiado(String nuevoTexto) { 
                System.out.println("Texto nuevo: "+nuevoTexto); 
            } 
        };
        ctl.comienzaAEscuchar();
	    
	}

}
